﻿using System;

namespace YJKGridTopologyCal.Utilities
{
	public class BitConverter
	{
		public static long DoubleToInt64Bits(double x)
		{
            return System.BitConverter.ToInt64(System.BitConverter.GetBytes(x), 0);
		}

		public static double Int64BitsToDouble(long x)
		{
            return System.BitConverter.ToDouble(System.BitConverter.GetBytes(x), 0);
		}
	}
}
